package com.baaio.conn.Interface;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Vector;

public interface GetDataIterface
{

	public ArrayList<String> getSingleData(String tb, String itemName, boolean f);

	public Vector<String> getSingleDataVector(String tb, String itemName,
			boolean f);

	public ArrayList<HashMap<String, String>> getSelect(String tb,
			String idName, String idValue);

	public ArrayList<HashMap<String, String>> getSelect(Object object,
			String value);

	/**
	 * 查询指定表（对象）所有字段的值，并用map返回。
	 * 
	 * @param object
	 * @return
	 */
	public ArrayList<HashMap<String, String>> getSelect(Object object);

	public ArrayList<HashMap<String, String>> getSelect(String tb,
			ArrayList<String> itemName, String condition);

	public ArrayList<HashMap<String, String>> handel(String tb,
			ArrayList<String> itemName, String condition);

	public ArrayList<String> getColumnName(String tb) throws Exception;

	public Vector<String> getColumnManeVector(String tb) throws Exception;

	public Object[] getColumnNameObject(String tb) throws Exception;

	public Object[][] getTableData(String tbName, ArrayList<String> items);

	public Object[][] getTableData(String tbName);

	public Vector<String> getSelectOneRow(String tableName, String item,
			String value);
	
	public ArrayList<Vector<String>> getSelectListVector(String tableName, String item,
			String value);

	public void close();
}
